<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>主页面</title>
</head>
<body>
<a th:href="@{/logout}">注销</a>
<div>
    <span th:text="#{user.name}+':'"></span>
    <span sec:authentication="principal.username">
 </span>
</div>
<div>
    <span th:text="#{user.nick}+':'"></span>
    <span sec:authentication="principal.niceName"></span>
</div>
<div>
    <span th:text="#{user.mobile}+':'"></span>
    <span sec:authentication="principal.mobile"></span>
</div>

</body>
</html>
